package com.wzcl.app.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class SpecificationsDto extends BaseDto {
    @NotNull(message = "缺少关联的商品Id")
    @ApiModelProperty(value = "关联的商品")
    private Integer commodityId;

    @NotBlank(message = "缺少属性组合值")
    @ApiModelProperty(value = "属性Map的JSON")
    private String spec;

    @NotBlank(message = "缺少价格")
    @ApiModelProperty(value = "价格")
    private String price;
}
